package com.situ.mianXiangDuiXiang.entity;

public class ComputerObj {
    private DisplayObj displayObj;
    private CPUobj cpUobj;

    public void jisuan(Double num1,Double num2){
        this.displayObj.xianshi(this.cpUobj.sum(num1, num2));
    }

    public ComputerObj(DisplayObj displayObj, CPUobj cpUobj) {
        this.displayObj = displayObj;
        this.cpUobj = cpUobj;
    }

    public ComputerObj() {
    }

    @Override
    public String toString() {
        return "ComputerObj{" +
                "displayObj=" + displayObj +
                ", cpUobj=" + cpUobj +
                '}';
    }
}
